const express = require('express');
const router = express.Router();
const pubKeyCtrl = require('../controller/pubKey')
const pubKeyValidator = require('../validator/pubKey')

/*GET getPubKey */
router.get('/keys', pubKeyCtrl.getPubKey);
// 添加key
router.post('/keys', pubKeyValidator.addPubKey, pubKeyCtrl.addPubKey);

module.exports = router;
